sharepoint enterprise 您所在的位置:网站首页 type error undefined is not a function sharepoint enterprise

sharepoint enterprise

2023-09-07 10:35| 来源: 网络整理| 查看: 265

It seems that sp.js is not yet loaded when SP.ClientContext is being called.

Use SP.SOD.executeFunc to ensure that the specified file that contains the specified function is loaded and then runs the specified callback function.

You could try to enclose your code like this:

SP.SOD.executeFunc('SP.js', 'SP.ClientContext', function() { var webUrl = _spPageContextInfo.webAbsoluteUrl; var context = new SP.ClientContext(webUrl); //... });


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有